require('dotenv').config();

module.exports = {
    port: process.env.PORT || 3003,
    mongoUri: process.env.MONGODB_URI || 'mongodb://localhost:27017/chat-platform',
    uploadDir: process.env.UPLOAD_DIR || 'uploads',
    maxFileSize: 10 * 1024 * 1024, // 10MB
    allowedOrigins: process.env.ALLOWED_ORIGINS ? 
        process.env.ALLOWED_ORIGINS.split(',') : 
        ['http://localhost:3000', 'http://localhost:3003', 'http://localhost:6528']
}; 